package com.example.fistboot.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CC {

    private int aaa=0;

    @RequestMapping("/getapi1")
    public String api1(@RequestBody String s){
        Logger logger = LoggerFactory.getLogger(this.getClass());
        logger.error("次数："+(++aaa)+"接口开始 @调用 "+s);
        try {
            Thread.sleep(10000);
        }catch (Exception e){}
        logger.error("次数："+(aaa)+"接口调用 %完成 "+s);

        return "('123890')";
    }
}
